Add workaround for failing lconvert
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 25 Jun 2022 19:45:17 +0000 (21:45 +0200)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 25 Jun 2022 19:45:17 +0000 (21:45 +0200)
Closes: #1013610
debian/patches/0009-Ignore-errors-during-lconvert.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0009-Ignore-errors-during-lconvert.patch b/debian/patches/0009-Ignore-errors-during-lconvert.patch
new file mode 100644 (file)
index 0000000..8bd8f7d
--- /dev/null
@@ -0,0 +1,26 @@
+From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
+Date: Sat, 25 Jun 2022 21:22:20 +0200
+Subject: Ignore errors during lconvert
+
+Starting with qt5 5.15.4 lconvert errors with
+
+QM-Format error
+
+for some calls and thus thus fails the build.
+---
+ gui/package_app | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gui/package_app b/gui/package_app
+index 01c00eb..f7829f6 100755
+--- a/gui/package_app
++++ b/gui/package_app
+@@ -50,7 +50,7 @@ function convert_qt_translations()
+     inputs+=("qtbase_${language}.qm")
+     if [ -e "qtdeclarative_${language}.qm" ]; then inputs+=("qtdeclarative_${language}.qm"); fi
+     if [ -e "qtserialport_${language}.qm" ]; then inputs+=("qtserialport_${language}.qm"); fi
+-    "${LCONVERT}" -o "${LANGDIR}/qt_${language}.qm" "${inputs[@]}"
++    "${LCONVERT}" -o "${LANGDIR}/qt_${language}.qm" "${inputs[@]}" || true
+     if [ "${machine}" = "Mac" ]; then
+       # Create locversion.plist in the bundle to trigger translations for
index 5cd9d3bfad93fefdb5af7526fd6f1453255dd8dd..233dc29fc5639d49e34c3c689d8138ef2a4cd57e 100644 (file)
@@ -6,3 +6,4 @@ Disable-donation-nagging
 0007-Add-workaround-for-failing-test-on-i386.patch
 0008-Add-Debian-build-flags.patch
 831.patch
+0009-Ignore-errors-during-lconvert.patch